<script setup>
import { defineProps } from 'vue';
let {title}=defineProps(['title'])

</script>

<template>
<div class="title">
    <slot :title="title">
        {{ title }}
    </slot>
</div>
</template>

<style scoped lang="scss">
    .title{
        width: 100%;
        height: 36px;
        line-height: 30px;
        padding-left: 20px;
        margin-bottom: 10px;
        font-size: 18px;
        color: #ddd;
        box-sizing: border-box;
        font-weight: bold;
        background-image: url('../../assets/images/titlebg.png');
        background-size: 100% 100%;
    }
</style>
